* way that this code:
*
* |[<!-- language="C" -->
- * // width and height are set elsewhere
+ * GtkWindow *window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
+ * int width = 500;
+ * int height = 300;
* gtk_window_resize (window, width, height);
*
* int new_width, new_height;
*
* |[<!-- language="C" -->
* static void
- * on_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
+ * on_size_allocate (GtkWidget *widget,
+ * const GtkAllocation *allocation,
+ * int baseline,
+ * GtkAllocation *out_clip)
* {
* int new_width, new_height;
*
* gtk_window_get_size (GTK_WINDOW (widget), &new_width, &new_height);
*
- * ...
+ * // ...
* }
* ]|
*